lib/repo: Refactor object copy import function
authorColin Walters <walters@verbum.org>
Mon, 12 Jun 2017 19:36:16 +0000 (15:36 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 12 Jun 2017 21:13:23 +0000 (21:13 +0000)
commit848b7c020121fbda8d1028bf5e0e9adf8c591b0c
tree5b9b51c75e29e1790472b9c7887c38e29d96490e
parent8edb5161dbf9a94734baeb0332b367fe66aafbe4
lib/repo: Refactor object copy import function

This came up in: https://github.com/ostreedev/ostree/pull/881

Basically doing streaming for metadata is dumb. Split up the metadata/content
paths so we pass metadata around as `GVariant`. This drops the last internal
caller of `ostree_repo_write_metadata_stream_trusted()` which was the dumb
function mentioned.

Closes: #923
Approved by: jlebon
src/libostree/ostree-repo.c